package com.lzx.mq.feign;

import com.lzx.mq.vo.NicknameVO;
import com.lzx.mq.vo.OssVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 程序员星星
 * @date 2023/2/12
 * @Description
 */
@Component
@FeignClient("five-cube-answer")
public interface AnswerClient {

    //修改用户昵称(问题)
    @PutMapping("/answer/problem/web/updateNicknameToProblem")
    String updateNicknameToProblem(@RequestBody NicknameVO nicknameVO);

    //修改用户昵称(问题二级回复)
    @PutMapping("/answer/secondReply/web/updateNicknameToSecondReply")
    String updateNicknameToSecondReply(@RequestBody NicknameVO nicknameVO);

    //修改用户昵称(问题一级回复)
    @PutMapping("/answer/reply/web/updateNicknameToReply")
    String updateNicknameToReply(@RequestBody NicknameVO nicknameVO);

    //修改用户头像(问题)
    @PutMapping("/answer/problem/web/updateAvatarToProblem")
    String updateAvatarToProblem(@RequestBody OssVO ossVO);

    //修改用户头像(问题二级回复)
    @PutMapping("/answer/secondReply/web/updateAvatarToSecondReply")
    String updateAvatarToSecondReply(@RequestBody OssVO ossVO);

    //修改用户头像(问题一级回复)
    @PutMapping("/answer/reply/web/updateAvatarToReply")
    String updateAvatarToReply(@RequestBody OssVO ossVO);
}
